#! /bin/bash

ADD_DATE="
alter table jtp_oms_shucang.ods_oms_order add if not exists partition  (dt='${ADD_DATE}');"

/opt/module/spark/bin/beeline -u jdbc:hive2://node101:10001 -n bwie -e "${ADD_DATE}"